package com.atl.enity.po;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 充电记录
 * </p>
 *
 * @author 
 * @since 2024-06-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("charging_record")
@ApiModel(value="ChargingRecord对象", description="充电记录")
public class ChargingRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "充电用户id")
    private Long stockUserId;

    @ApiModelProperty(value = "充电站id")
    private Long chargingStationsId;

    @ApiModelProperty(value = "充电桩id")
    private Long chargingPileInfoId;

    @ApiModelProperty(value = "省")
    private String province;

    @ApiModelProperty(value = "市")
    private String city;

    @ApiModelProperty(value = "县")
    private String county;

    @ApiModelProperty(value = "详细地点")
    private String address;

    @ApiModelProperty(value = "价格单位元")
    private BigDecimal price;

    @ApiModelProperty(value = "服务费 价格单位元度")
    private BigDecimal serviceCharge;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    private LocalDateTime timestamp;

    @ApiModelProperty(value = "充电开始时间")
    private LocalDateTime chargeStartTime;

    @ApiModelProperty(value = "充电结束时间")
    private LocalDateTime chargeEndTime;

    @ApiModelProperty(value = "充电度数")
    private BigDecimal chargeNum;

    @ApiModelProperty(value = "充电总金额")
    private BigDecimal chargeTotalMoney;

    @ApiModelProperty(value = "0:未付款 1:已付款")
    private Integer paymentStatus;

    @ApiModelProperty(value = "0:未充电 1:充电中 2:充电结束")
    private Integer chargeStatus;


}
